interface Demo {
    label: string;
    [key: string]: any
}

function fun(demo: Demo) {
    console.log(demo.label)
}

fun({
    label: 'test',
    other: 'other'
})